import Login from "@/components/user/Login";
import Register from "@/components/user/Register";
import Index from "@/components/user/Index"
import Profile from "@/components/user/Profile"
import Ems from "@/components/user/Ems"
import Collection from "@/components/user/Collection"
import CollectCate from "@/components/user/CollectCate"
const Base = [
    {
        // /user/base/login
        path:'base/login',
        name:'BaseLogin',
        component:Login
    },
    {
        path:'base/register',
        name:'BaseRegister',
        component:Register
    },
    {
        path:'base/index',
        name:'BaseIndex',
        component:Index,
        // 自定义一个路由属性，用于判断是否需要登录才能访问
        auth:true
    },
    {
        path:'base/profile',
        name:'BaseProfile',
        component:Profile,
        auth:true
    },
    {
        path:'base/ems',
        name:'BaseEms',
        component:Ems,
        auth:true
    },
    {
        path:'base/collection',
        name:'BaseCollection',
        component:Collection,
        auth:true
    },
    {
        path:'base/collectcate',
        name:'BaseCollectCate',
        component:CollectCate,
        auth:true
    }
]

export default Base